package com.sc.nft.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.vo.ecology.AdminEcologyHatchDivideIntoLogVO;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.EcologyHatchDivideIntoLog;
import com.sc.nft.mapper.EcologyHatchDivideIntoLogMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

/**
 * 生态-分成记录(sc_ecology_hatch_divide_into_log)数据DAO
 *
 * @author Sun
 * @since 2023-12-06 18:47:15
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@Repository
public class EcologyHatchDivideIntoLogDao extends ServiceImpl<EcologyHatchDivideIntoLogMapper, EcologyHatchDivideIntoLog> {

    public Page<AdminEcologyHatchDivideIntoLogVO> divideIntoPage(Long collectionId, Integer pageNo, Integer pageSize) {
        return baseMapper.divideIntoPage( new Page<>(pageNo, pageSize),collectionId);
    }
}